Building Python Real-Time Applications with Storm by Bhatnagar Kartik & Hart Barry
Author:Bhatnagar, Kartik & Hart, Barry [Bhatnagar, Kartik]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2015-12-02T05:00:00+00:00
This cuts the startup time from 30 seconds down to about 10 seconds.
Enabling and using logging
Like many languages, Python has a logging framework that provides a way to capture information on what is happening inside a running application. This section describes how to use logging with Storm:
In the same directory as that of the word count topology, create a new file, called logconfig.ini:[loggers] keys=root,storm [handlers] keys=hand01 [formatters] keys=form01 [logger_root] level=INFO handlers=hand01 [logger_storm] qualname=storm level=DEBUG handlers=hand01 propagate=0 [handler_hand01] class=FileHandler level=DEBUG formatter=form01 args=(os.getenv('PETREL_LOG_PATH') or 'petrel.log', 'a') [formatter_form01] format=[%(asctime)s][%(name)s][%(levelname)s]%(message)s datefmt= class=logging.Formatter
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(20604)
Hello! Python by Anthony Briggs(19899)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(18208)
Dependency Injection in .NET by Mark Seemann(18109)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(17575)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(17422)
Kotlin in Action by Dmitry Jemerov(17185)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(16933)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(16236)
Grails in Action by Glen Smith Peter Ledbrook(15390)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(13266)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(11381)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10579)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(10393)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(9389)
Hit Refresh by Satya Nadella(9084)
The Kubernetes Operator Framework Book by Michael Dame(8522)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8348)
Robo-Advisor with Python by Aki Ranin(8294)